import request from '@/utils/request'

// 查询名师（名嘴）列表
export function listTeacher(query) {
  return request({
    url: '/recitation_admin/teacher/list',
    method: 'get',
    params: query
  })
}

// 查询名师（名嘴）详细
export function getTeacher(famousTeacherId) {
  return request({
    url: '/recitation_admin/teacher/' + famousTeacherId,
    method: 'get'
  })
}

// 新增名师（名嘴）
export function addTeacher(data) {
  return request({
    url: '/recitation/teacher',
    method: 'post',
    data: data
  })
}

// 修改名师（名嘴）
export function updateTeacher(data) {
  return request({
    url: '/recitation/teacher',
    method: 'put',
    data: data
  })
}

// 删除名师（名嘴）
export function delTeacher(famousTeacherId) {
  return request({
    url: '/recitation/teacher/' + famousTeacherId,
    method: 'delete'
  })
}
